export default {
  name: [{ required: true, message: "请输入名称或简称", trigger: "blur" }],
  author: [{ required: false, message: "请输入作者", trigger: "blur" }],
  applyUrl: [{ required: false, message: "请输入报名链接", trigger: "blur" }],
  liveUrl: [{ required: false, message: "请确认直播链接", trigger: "blur" }],
  coverUrl: [{ required: true, message: "请上传封面图", trigger: "blur" }],
  smallUrl: [{ required: true, message: "请上传首页小Banner图", trigger: "blur" }],
  qrCodeUrl: [{ required: false, message: "请上传二维码", trigger: "blur" }],
  categoryId: [{ required: true, message: "请选择类别", trigger: "blur" }],
  tagsIds: [{ required: true, message: "请选择标签", trigger: "blur" }],
  publishDate: [{ required: true, message: "请选择发布时间", trigger: "blur" }],
  content: [
    {
      type: "string",
      required: true,
      message: "请输入案例库正文",
      trigger: "change",
    },
  ],
  sourceId: [{ required: true, message: "请输入跳转文章ID", trigger: "blur" }],
  linkUrl: [
    {
      required: false,
      message: "请输入正确的跳转文章链接",
      pattern: /(http|https):\/\//,
      trigger: "blur",
    },
  ],
  weight: [{ required: true, message: "请输入权重", trigger: "blur" }],
  status: [{ required: true, message: "请选择广告状态", trigger: "blur" }],
};
